<?php if(empty($r['comment'])){ echo "亲，暂时还没有评价信息哦~"?>
<?php }else{?>
    <table id="dataTable">
        <thead>
        <tr>
            <th>订单号</th>
            <th>用户评价</th>
            <th>评价内容</th>
            <th>到站时间</th>
            <th>配送时间</th>
            <th>回复内容</th>
            <th>回复时间</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        <?php foreach($r['comment'] as $v){?>
            <tr>
                <td><?php echo $v['order_id'];?></td>
                <td><?php foreach($r['score_state'] as $k=>$g){?>
                        <?php if($v['score']==$k)echo $g;?>
                    <?php }?></td>
                <td><?php echo $v['comment'];?></td>
                <td><?php echo $v['create_time'];?></td>
                <td><?php echo $v['service_id'];?></td>
                <td><?php echo $v['reply'];?></td>
                <td><?php echo $v['reply_time'];?></td>
                <td><?php if(empty($v['reply_time'])){?><a href="<?php e_action("reply","id={$v['id']}");?>">回复</a><?php }?></td>
            </tr>
        <?php } ?>
        </tbody>
    </table>
    <?php
    /** @var Page $page */
    $page=$r['pages'];
    ?>
    <?php echo $page->getPageHtml(); ?>
<?php }?>